package com.zhouixi.reproduce.service.impl;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.zhouixi.reproduce.entity.User;
import com.zhouixi.reproduce.mapper.UserMapper;
import com.zhouixi.reproduce.service.IUserService;
import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

@Service
public class UserServiceImpl implements IUserService{
	
	@Resource
    private UserMapper userMapper;

	@Override
	public User findUserById(int id) {
		return userMapper.findUserById(id);
	}

	@Override
	public int add(User user) {
		return userMapper.add(user);
	}
	
	
	
}
